﻿using System;
using GIMS.Def.Operators;

namespace GIMS.GUI
{
    public class OperatorRepresenter
    {
        public OperatorRepresenter(Operator imOperator)
        {
            OperatorName = imOperator.Name;
            OperatorDescription = imOperator.Description;
            if(string.IsNullOrEmpty(imOperator.IconPath))
            {
                IconPath = @"Images\default.png";
            }
            else
            {
                IconPath = imOperator.IconPath;
            }
        }

        public string OperatorName { get; private set; }
        public string OperatorDescription { get; private set; }
        public string IconPath { get; private set; }
    }
}
